package com.persagy.ems.pojo.quartz;

import com.persagy.core.annotation.Column;
import com.persagy.core.annotation.Dimension;
import com.persagy.core.annotation.Entity;
import com.persagy.core.annotation.Id;
import com.persagy.core.annotation.Property;
import com.persagy.core.annotation.Table;
import com.persagy.core.enumeration.Schema;
import com.persagy.core.mvc.pojo.BusinessObject;

@Dimension
@Entity(name="ScheduleJob")
@Table(
		name="t_schedule_job",
		comment="quartz定时任务",
		schema=Schema.NONE
)
public class ScheduleJob extends BusinessObject{

	private static final long serialVersionUID = -4362045481168454098L;
	
	@Id
	@Column(order = 0, name = "c_id", length = 36, nullable = false, comment = "任务id")
	private String jobId;
	@Column(order = 1, name = "c_job_name", length = 36, nullable = false, comment = "任务名称")
	private String jobName;
	@Column(order = 2, name = "c_job_group", length = 36, nullable = false, comment = "任务分组")
	private String jobGroup;
	@Column(order = 3, name = "c_job_status", length = 10, nullable = false, comment = "任务状态: 0未启动, 1启动")
	private String jobStatus;
	@Column(order = 4, name = "c_cron_expression", length = 50, nullable = false, comment = "任务运行时间表达式")
	private String cronExpression;
	@Column(order = 5, name = "c_job_class_name", length = 50, nullable = false, comment = "任务类名")
	private String jobClassName;
	@Column(order = 6, name = "c_job_params", length = 200, nullable = true, comment = "运行参数")
	private String jobParams;
	@Column(order = 7, name = "c_desc", length = 100, nullable = true, comment = "任务描述")
	private String desc;
	@Property
	private String jobCurrentStatus;

	public String getJobId() {
		return jobId;
	}

	public void setJobId(String jobId) {
		this.jobId = jobId;
	}

	public String getJobName() {
		return jobName;
	}

	public void setJobName(String jobName) {
		this.jobName = jobName;
	}

	public String getJobGroup() {
		return jobGroup;
	}

	public void setJobGroup(String jobGroup) {
		this.jobGroup = jobGroup;
	}

	public String getJobStatus() {
		return jobStatus;
	}

	public void setJobStatus(String jobStatus) {
		this.jobStatus = jobStatus;
	}

	public String getCronExpression() {
		return cronExpression;
	}

	public void setCronExpression(String cronExpression) {
		this.cronExpression = cronExpression;
	}

	public String getJobClassName() {
		return jobClassName;
	}

	public void setJobClassName(String jobClassName) {
		this.jobClassName = jobClassName;
	}
	
	public String getJobParams() {
		return jobParams;
	}

	public void setJobParams(String jobParams) {
		this.jobParams = jobParams;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public String getJobCurrentStatus() {
		return jobCurrentStatus;
	}

	public void setJobCurrentStatus(String jobCurrentStatus) {
		this.jobCurrentStatus = jobCurrentStatus;
	}
	
}
